/**
 * @type {String}
 *
 * @properties={typeid:35,uuid:"75DC4A8B-32C4-41EE-A2BF-EFE9041D6989"}
 */
var vdesc_docum = null;

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"9D95EEEC-96D7-4D46-81EC-ECF4825E2C8A"}
 */
function imprimir(event) 
{
forms.liq_cabecera_imp.controller.showPrintPreview(true);
}

/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"C94A0703-9DD4-4792-A450-C5BB6122F16B"}
 */
function iniciar(firstShow, event) 
{
if (tipo_doc==6 || tipo_doc==41 || tipo_doc==42) // 18/02/2011 41=NC viajes  42=ND viajes
	{
	// liquidación o estadía
	elements.tabs_310.tabIndex=1;
	elements.tabs_310.setTabEnabledAt(2,false);
	if(tipo_doc==41 || tipo_doc==42)  // 18/02/2011
		elements.tipo_doc.visible=true;   // 18/02/2011
	else  // 18/02/2011
		elements.tipo_doc.visible=false;
	}
else
	{
	// nota de Cred o Deb
	elements.tabs_310.tabIndex=2;
	elements.tabs_310.setTabEnabledAt(1,false);
	elements.tipo_doc.visible=true
	}
if (letra=="A")
{
	elements.iva1_porc.visible=true;
	elements.iva1_imp.visible=true;
}
else
{
	elements.iva1_porc.visible=false;
	elements.iva1_imp.visible=false;
}
}
